import http from "@/utils/http";

/**
 * 加入购物车
 * @param {Object} data 
 * @returns 
 */
export const postMemberCart = data => http.post('/member/cart',data)

// 获取购物车列表
export const getMemberCart = () => http.get('/member/cart')

// 获取购物车数量
export const getMemberCartCount = ()=> http.get('/member/cart/count')

// 修改购物车商品
export const putMemberCart = (id,data)=> http.put('/member/cart/'+id,data)

// 购物车全选/取消全选
export const putMemberCartSelected = (data)=> http.put('/member/cart/selected',data)

// 删除/清空购物车商品
export const deleteMemberCart = data=> http.delete('/member/cart',data)

